<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateOddTypesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('odd_types', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('plat_code', 64)->nullable()->comment('平台编号');
			$table->string('code', 64)->nullable()->comment('盘口编号');
			$table->integer('limit_min')->unsigned()->default(0)->comment('最低限额');
			$table->integer('limit_max')->unsigned()->default(999999)->comment('最高限额');
			$table->string('description')->nullable()->comment('限额描述');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('odd_types');
	}

}
